// 学生信息包含：
// name：姓名
// gender：性别
// age:年龄
const mongoose = require('mongoose');
const studentSchema = new mongoose.Schema({
    name:String,
    gender:String,
    age:Number,
    classId:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "classModel"
    }
});
module.exports = mongoose.model('studentModel',studentSchema,'students');